package com.netcombine.freewill.controller;

import javax.servlet.http.HttpSession;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.netcombine.freewill.constants.PageInfo;
import com.netcombine.freewill.manager.SessionManager;
import com.netcombine.freewill.service.CommunityService;


@Controller
public class School_CommunityController {
	
	private static final Logger logger = LoggerFactory.getLogger(School_CommunityController.class);
	
	@Autowired
	private CommunityService communityService;
	@RequestMapping(value = "/community/schcool_list")
	public String school_list(HttpSession session, Model model){

		if(!SessionManager.isLogin(session)){	
			
			return PageInfo.GO_LOGIN;
			
		}		
			return "community/schcool_list";
			
			
	}	

}
